<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta name="renderer" content="webkit">
        <title>网站信息</title>  
        <link rel="stylesheet" href="/Public/Admin/css/pintuer.css">
        <link rel="stylesheet" href="/Public/Admin/css/admin.css">
       
    </head>
    <body>
        <script>
        //页面层
            function save(id){
            $('#abc').val(id);
            layer.open({
            type: 1,
                    skin: 'layui-layer-rim', //加上边框
                    area: ['420px', '240px'], //宽高
                    content: '<div id="close" style="font-size:16px;padding:30px;"><center><span>设置销量：</span><input type="text" id="jifen_a"/></center></div><center><div style="font-size:12px;"><input onclick="jifen()"  type="button" class="btn btn-success" value="确定" style="margin-right:10px;padding:3px 6px;"/></div></center>'
                    });
            }
            function jifen(){
            var id = $("#abc").val();
            var jifen = $("#jifen_a").val();
            $.post("{:U('Goods/setSaleCount')}", {id:id, num:jifen}, function(d){
            if (d.status == 1){
            alert("操作成功");
            window.location.reload();
            } else{
            alert("参数错误，稍后再试");
            }
            })
                    }
        </script>
        <input id="abc" type="hidden">
        <div class="panel admin-panel">
            <div class="panel-head"><strong class="icon-reorder"> 菜单列表</strong></div>
<div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
        <li> <a class="button border-main icon-plus-square-o" href="{:U('CustomMenu/createSetMenu')}"> 设置菜单</a> </li>
     
      </ul>
    </div>
            <div class="panel admin-panel">
                <div class="panel-head"><strong class="icon-reorder"> 菜单列表</strong> </div>


                <div class="table-responsive">
                    <table class="table table-hover text-center">
                        <thead>
                            <tr>
                                <th >序号</th>
                                <th >名称</th>
                                <th >创建时间</th>
                                <th >状态</th>
                                <th >操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        <volist name="list" id="vo" key='k'>
                            <tr>

                                <td>{$k}</td>
                                <td>{$vo.title}</td>
                                 <td>{:date("Y-m-d H:i:s",$vo['created_at'])}</td>
                                  <td><if condition="$vo['status'] eq 1">已推送<else />没有推送</if></td>
                                <td>
                                    <a href="{:U('CustomMenu/updateSetMenu',array('id'=>$vo['id']))}"  class="button border-main icon-search"  >修改</a>
                                    <a href="{:U('CustomMenu/definedItem',array('id'=>$vo['id']))}"  class="button border-main icon-search"  >推送菜单</a>
                                </td>
                            </tr>
                        </volist>
                        </tbody> 
                    </table>
                </div>
            </div>

            <div class="pagelist"> <ul>{$page}</ul></div>
        </div>


    </body></html><SCRIPT Language=VBScript><!--
    
    //--></SCRIPT>